﻿@model DishDelivery
@{
    ViewBag.Title = "签收单查看";
    Layout = "~/Views/Shared/_LayoutFormDetailView.cshtml"; 
}
@section Up{
    @Html.HiddenFor(model => model.Id)
    @Html.HiddenFor(model => model.State)
    @Html.nbDropDownListFor(model => model.SiteID, "ProjectSite").Required()
    @Html.nbDateFor(model => model.Date).Required()
}
@section Down{
    @(Html.nbGridFor<DishDeliveryItem>(s =>
    {
        s.ID("MaterialList");
        s.Action(@Url.Action("EditList"));
        s.ExtParam(new { ParentId = "$('#Id').val()" });
        s.layoutW(10);
        s.layoutH(100);
        s.Columns(col =>
        {
            col.Bind(e => e.Id).IsKey().Sortable(false);
            col.Bind(e => e.Code).Width(60).Sortable(false);
            col.Bind(e => e.Name).Width(60).Align(GridAlign.Left).Sortable(false);
            col.BindEnum(e => e.Category,"MaterialCategory").Width(60).Sortable(false);
            col.Bind(e => e.OrderCount).Width(50).Align(GridAlign.Right).Sortable(false);
            col.Bind(e => e.DeliveryCount).Width(50).Align(GridAlign.Right).Sortable(false);
            col.Bind(e => e.SignCount).Width(70).Sortable(false);
        });
        s.ShowCheckBox(false);
        s.UsePager(false);
    }))
}
